<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/rdflib.git/setup.cfg, branch sdo-https</title>
<subtitle>github.com: rdflib/rdflib.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/'/>
<entry>
<title>Ignore some spurious warnings caused by pytest</title>
<updated>2021-11-13T13:32:02+00:00</updated>
<author>
<name>Iwan Aucamp</name>
<email>aucampia@gmail.com</email>
</author>
<published>2021-11-13T13:32:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=e19fccea05e474174a5cd8a450fa49a1c6d0069b'/>
<id>e19fccea05e474174a5cd8a450fa49a1c6d0069b</id>
<content type='text'>
pytest's behaviour causes some spurious warnings during test, this
commit configures pytest to ignore them.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
pytest's behaviour causes some spurious warnings during test, this
commit configures pytest to ignore them.
</pre>
</div>
</content>
</entry>
<entry>
<title>Migrate from nosetest to pytest</title>
<updated>2021-10-24T14:28:54+00:00</updated>
<author>
<name>Iwan Aucamp</name>
<email>aucampia@gmail.com</email>
</author>
<published>2021-10-24T14:19:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=c2a37b70b9ca7158996f59437ae193dd7c421316'/>
<id>c2a37b70b9ca7158996f59437ae193dd7c421316</id>
<content type='text'>
This patch replace all uses of nose with pytest. It also includes a
pytest plugin for creating EARL reports for tests with a `rdf_test_uri`
parameter.

Some caveats:

- HTML report directory is now htmlcov instead of coverage
- There is some warning related to the EARL reporting plugin which I can't quite figure out:
  ```
  .venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676
    /home/iwana/sw/d/github.com/iafork/rdflib/.venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: test.earl
      self.import_plugin(import_spec)
  ```
  This is not causing any problems as far as I can tell, but still annoying.
- python setup.py test won't work anymore, I can make it work but this
  is not advised by pytest:
  https://github.com/pytest-dev/pytest-runner/#deprecation-notice
- run_test.py is still there but it's not really referenced anymore from
  anywhere and the options it accepts are completely different as it's options
  were based on nose. I would say it should be removed entirely but for now
  it is basically just a wrapper around pytest that basically does nothing.
- Removed references to test attributes as currently they are not being
  used anywhere anyway, I guess we can add them back if there is some
  use for them later.
- A lot of tests are still marked to skip when really they should be marked
  with xfail. This is also affecting the RDFT test manifests and result in
  reports saying tests are skipped when really we know they will fail and
  they are only skipped for this reason. But there is no change here from
  before, and pytest makes it easier to dynamically do expected failures.

Special thanks to Wes Turner for his advice and inputs on this process.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch replace all uses of nose with pytest. It also includes a
pytest plugin for creating EARL reports for tests with a `rdf_test_uri`
parameter.

Some caveats:

- HTML report directory is now htmlcov instead of coverage
- There is some warning related to the EARL reporting plugin which I can't quite figure out:
  ```
  .venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676
    /home/iwana/sw/d/github.com/iafork/rdflib/.venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: test.earl
      self.import_plugin(import_spec)
  ```
  This is not causing any problems as far as I can tell, but still annoying.
- python setup.py test won't work anymore, I can make it work but this
  is not advised by pytest:
  https://github.com/pytest-dev/pytest-runner/#deprecation-notice
- run_test.py is still there but it's not really referenced anymore from
  anywhere and the options it accepts are completely different as it's options
  were based on nose. I would say it should be removed entirely but for now
  it is basically just a wrapper around pytest that basically does nothing.
- Removed references to test attributes as currently they are not being
  used anywhere anyway, I guess we can add them back if there is some
  use for them later.
- A lot of tests are still marked to skip when really they should be marked
  with xfail. This is also affecting the RDFT test manifests and result in
  reports saying tests are skipped when really we know they will fail and
  they are only skipped for this reason. But there is no change here from
  before, and pytest makes it easier to dynamically do expected failures.

Special thanks to Wes Turner for his advice and inputs on this process.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use pytest instead of nose</title>
<updated>2021-10-18T19:49:07+00:00</updated>
<author>
<name>Natanael Arndt</name>
<email>arndtn@gmail.com</email>
</author>
<published>2021-03-01T14:36:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=4c2c1eb211ac8fbd0a1f85fc8f4e105449709f1d'/>
<id>4c2c1eb211ac8fbd0a1f85fc8f4e105449709f1d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add py.typed as per PEP 561</title>
<updated>2021-09-21T20:22:51+00:00</updated>
<author>
<name>Iwan Aucamp</name>
<email>aucampia@gmail.com</email>
</author>
<published>2021-09-21T20:22:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=64346b40c494229e42ccd20de295034554a5cc0b'/>
<id>64346b40c494229e42ccd20de295034554a5cc0b</id>
<content type='text'>
This is so that other packages importing rdflib does not get warnings
like this:

```
$ python3.9 -m mypy --show-error-context --show-error-codes  test_rdflib.py
test_rdflib.py:1: error: Skipping analyzing "rdflib": found module but no type hints or library stubs  [import]
test_rdflib.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is so that other packages importing rdflib does not get warnings
like this:

```
$ python3.9 -m mypy --show-error-context --show-error-codes  test_rdflib.py
test_rdflib.py:1: error: Skipping analyzing "rdflib": found module but no type hints or library stubs  [import]
test_rdflib.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix mypy type errors and add mypy to .drone.yml</title>
<updated>2021-09-10T21:24:36+00:00</updated>
<author>
<name>Iwan Aucamp</name>
<email>aucampia@gmail.com</email>
</author>
<published>2021-09-10T21:24:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=90f6fe5611f4c7411e5eac347cafb9d009829b6c'/>
<id>90f6fe5611f4c7411e5eac347cafb9d009829b6c</id>
<content type='text'>
Fixes #1311

Add `mypy` to .drone.yml and fix type errors that come up.

Not type checking examples or tests.

Other changes:

- fix return value for `Graph.serialize` (refs #1394)
- remove default value for
  `rdflib.plugins.sparql.algebra.translateAlgebra` (refs #1322)
- add .dockerignore to reduce context size and make docker quicker
  to run.
- add .flake8 config to ignore line length as black is managing
  formatting.
- add mypy to docker-compose, makefile and tox.ini
- fix the way csv2rdf is invoked to ensure that the right code gets
  executed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #1311

Add `mypy` to .drone.yml and fix type errors that come up.

Not type checking examples or tests.

Other changes:

- fix return value for `Graph.serialize` (refs #1394)
- remove default value for
  `rdflib.plugins.sparql.algebra.translateAlgebra` (refs #1322)
- add .dockerignore to reduce context size and make docker quicker
  to run.
- add .flake8 config to ignore line length as black is managing
  formatting.
- add mypy to docker-compose, makefile and tox.ini
- fix the way csv2rdf is invoked to ensure that the right code gets
  executed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove mypy from CI pipelines and requirements.dev.txt</title>
<updated>2021-06-02T23:40:38+00:00</updated>
<author>
<name>Iwan Aucamp</name>
<email>aucampia@gmail.com</email>
</author>
<published>2021-06-02T23:40:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=c88a10aea1380bce474140f48ab8523ae841bf10'/>
<id>c88a10aea1380bce474140f48ab8523ae841bf10</id>
<content type='text'>
Also move mypy config into `setup.cfg` to be in line with other tool
configuration.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also move mypy config into `setup.cfg` to be in line with other tool
configuration.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove the path section</title>
<updated>2021-03-01T12:49:13+00:00</updated>
<author>
<name>Natanael Arndt</name>
<email>arndtn@gmail.com</email>
</author>
<published>2021-03-01T12:49:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=cc0d8b4a0723fdde21e52a5b05305cffddd7a3f6'/>
<id>cc0d8b4a0723fdde21e52a5b05305cffddd7a3f6</id>
<content type='text'>
This section appears to be left over. It is only necessary in combination with coverage combine,
which we are not using.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This section appears to be left over. It is only necessary in combination with coverage combine,
which we are not using.
</pre>
</div>
</content>
</entry>
<entry>
<title>remove outcommented configuration from setup.cfg</title>
<updated>2021-03-01T12:37:38+00:00</updated>
<author>
<name>Natanael Arndt</name>
<email>arndtn@gmail.com</email>
</author>
<published>2021-03-01T12:37:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=b7afa35faa3952a7b5a6fdfe47a01b91b774ff7d'/>
<id>b7afa35faa3952a7b5a6fdfe47a01b91b774ff7d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move coverage configuration to setup.cfg</title>
<updated>2021-03-01T12:18:05+00:00</updated>
<author>
<name>Natanael Arndt</name>
<email>arndtn@gmail.com</email>
</author>
<published>2021-03-01T12:18:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=4cc036f54a3b071c53a272461567d85976b2b4eb'/>
<id>4cc036f54a3b071c53a272461567d85976b2b4eb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move flake8 config</title>
<updated>2021-01-28T11:35:26+00:00</updated>
<author>
<name>Natanael Arndt</name>
<email>arndtn@gmail.com</email>
</author>
<published>2021-01-28T11:35:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=d4f3a98294e07d4d90c62c639103732d3d5b3b30'/>
<id>d4f3a98294e07d4d90c62c639103732d3d5b3b30</id>
<content type='text'>
remove .pep8 as we don't use it
move the pep8 configuration to setup.cfg
set line length to the default value of black, as we use black
adjust travis configuration
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
remove .pep8 as we don't use it
move the pep8 configuration to setup.cfg
set line length to the default value of black, as we use black
adjust travis configuration
</pre>
</div>
</content>
</entry>
</feed>
