Commit Graph
23 Commits
Author SHA1 Message Date
Oliver Beckstein cb65c644c6 use versioneer for version management (#88)
- fix #87
- user versioneer for version management
   - use tag "vMAJOR.MINOR.PATCH" to indicate release number
   - exclude generated files from coverage;
      also exclude tests from coverage reporting;
      allow use of "# pragma: no cover" to exclude lines of code
      from coverage
   - configure coverage with entries in setup.cfg (removed
      commandline config from workflows/python-package.yml)
- related doc updates
   - make docs automatically use current version
      (docs use versioneer-based propka.__version__)
   - also added @IAlibay to authors (forgotten in previous
      PRs #84 and #85)
   - generate a sitemap (add sphinx_sitemap to requirements.txt)
- add test_version
   Note: Versioneer-generated version is “0-untagged” on the branch where
   it is tested so need to add it to a valid result.
2020-07-18 12:32:25 -07:00
Oliver Beckstein d710ca9679 exclude tests themselves from coverage reporting 2020-06-25 17:58:41 -07:00
Oliver Beckstein 4591a0ff1f badge for codecov and pypi 2020-06-25 17:48:45 -07:00
Oliver Beckstein aa68e3e6ce remove pandas dependency for tests
Tests do not require pandas but setup.py was still listing it.
2020-06-25 17:42:25 -07:00
Oliver Beckstein 28b4f44cd0 increase sphinx to >= 3.1 in requirements
- fix #72
- our sphinx docs need >= 3.1 because they use autosummary with :recursive:
2020-06-25 17:38:41 -07:00
Oliver Beckstein 58b6e652c6 Merge pull request #71 from jensengroup/nathan/coverage
- add coverage.py to testing workflow
- use https://codecov.io/gh/jensengroup/propka
2020-06-25 17:29:23 -07:00
Oliver Beckstein 4dc87a5a38 upload coverage to https://codecov.io/gh/jensengroup/propka 2020-06-25 17:22:45 -07:00
Oliver Beckstein 02a0cbd58b link to the propka3 command page 2020-06-19 22:04:05 -07:00
Oliver Beckstein fe70dc491a add sphinx deps to requirements.txt
- sphinx
- sphinx_rtd_theme
2020-06-19 21:38:45 -07:00
Oliver Beckstein 1c343a7d96 basic usage for propka3 command 2020-06-19 21:38:45 -07:00
Oliver Beckstein 59a97680d8 make ghpages to push to gh-pages branch
- `make ghpages` will build the docs in docs/build/html and push it to an
  existing gh-pages branch; especially useful when building on a fork;
  you will have to initialize your gh-pages branch manually and enable
  docs on the gh-pages branch in the repo settings
- ignore build directories (top level build and docs/build)
2020-06-19 21:38:39 -07:00
Oliver Beckstein 26a5ab042e API docs for propka
- use autosummary (with custom module template)
- updated module docs for all modules so that they are included
  with sphinx autodocs
2020-06-19 16:25:24 -07:00
Oliver Beckstein 65856b39fb use autosummary to generate most of the API Reference
- custom _template/autosummary/module.rst to include docs
  for all module :members" (shows up directly after the summary
  tables)
- module docs should *not* contain autodocs for members, only general
  descriptions and examples
- all files inside api/ are autogenerated whenever sphinx is run
  (no need to add to the repository, hence excluded in .gitignore)
2020-06-19 15:18:04 -07:00
Oliver Beckstein 2bf031fd65 initial sphinx docs
starts #69

- basic structure
- RTD theme
- installation
- quickstart (more to do)
- references
- added start page with license and links to repo and issues
- authors in docs: papers and repo contributors (to be discussed)
2020-06-19 12:13:53 -07:00
Oliver Beckstein 91925bb920 test for stream-ness in Py 3/Py 2 compatible manner 2018-03-19 22:34:22 -07:00
Oliver Beckstein 9ebc76bcdc modernized installation procedure
- set VERSION to 3.1.0 (introduce a patch level 0 so that it becomes
  easier to publish packages with small fixes, eg for installation)
- got rid of ancient ez_install: just use pip
- updated README and INSTALL
- updated classifiers in setup.py (license: LGPL v2.1 and other meta data);
  updated URL to point to http://propka.org because unlike http://propka.ki.ku.dk
  it is not completely dead and has a link to the pdb2pqr propka server as well
  as the GitHub page
2018-03-19 22:34:22 -07:00
Oliver Beckstein ddaf27dea8 run.single() to run a propka calculation without script
- can pass a single pdffile (or stream(!))
- added options lib.loadOptions() to pass opt string
2014-11-20 17:30:27 -07:00
Oliver Beckstein f17fc9acfe file open/close functions can process any stream *filename* 2014-11-20 17:30:27 -07:00
Oliver Beckstein 12e4eeabd8 added INSTALL and fixed markup in README 2013-07-25 12:01:09 -07:00
Oliver Beckstein df9cbc04ec adjusted test script: all tests pass
* renamed scripts/propka.py to propka31.py so that it can be run
  without import issues
* ran the tests and no difference to the fixtures was detected
2013-07-25 11:57:01 -07:00
Oliver Beckstein 7008ed9f24 use pkg_resources to access bundled files
* egg file can remain zipped
* see http://peak.telecommunity.com/DevCenter/PythonEggs#accessing-package-resources
  for details
2013-07-25 11:40:50 -07:00
Oliver Beckstein b928c18bab Re-packaged with setuptools for standard installation
* 'python setup.py install' will install
  - a package 'propka' (which contains everything that 'Source' contained
    in the original distribution)
  - an executable script 'propka31' (which is identical to the original
    'propka.py' script but it is automatically generated via the setuptools
    mechanism; it uses propka.run.main().
* 'pip install' will also work
* the README.md file was changed to reflect the alterations
* metadata in the setup.py file was added

NOTE: The licence is still unclear!
2013-07-25 11:14:44 -07:00
Oliver Beckstein 695fbb4fbe use generic she-bang instead of hard-coded python3 2013-07-24 18:55:03 -07:00