Skip to content

Commit

Permalink
Use Poetry
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
  • Loading branch information
ryanlerch authored and abompard committed Apr 11, 2024
1 parent 60f9a4c commit 3e0b926
Show file tree
Hide file tree
Showing 6 changed files with 1,514 additions and 72 deletions.
6 changes: 0 additions & 6 deletions MANIFEST.in

This file was deleted.

1,449 changes: 1,449 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[tool.poetry]
name = "tahrir-api"
version = "0.8.1"
description = "An API for interacting with the Tahrir database"

license = "GPLv3+"

authors = [
"Ross Delinger <rdelinge@redhat.com>",
"Fedora Infrastructure <admin@fedoraproject.org>",
]

readme = 'README.rst'

repository = "https://github.com/fedora-infra/tahrir-api"
homepage = "https://github.com/fedora-infra/tahrir-api"

packages = [
{ include = "tahrir_api" },
]

include = [
{ path = "tests/*", format = "sdist" },
]

classifiers= [
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"License :: OSI Approved :: GNU General Public License v3 or later(GPLv3+)",
]

[tool.poetry.dependencies]
python = "^3.8.0"
pastedeploy = "^3.1.0"
pygments = "^2.17.2"
simplejson = "^3.19.2"
sqlalchemy = "^2.0.29"
zope-sqlalchemy = "^3.1"
arrow = "^1.3.0"
alembic = "^1.13.1"
fedora-messaging = "^3.5.0"
tahrir-messages = "^1.0.2"


[tool.poetry.group.dev.dependencies]
nose = "^1.3.7"
coverage = "^7.4.4"

[tool.poetry.scripts]
initialize_tahrir_db = "tahrir_api.scripts.initializedb:main"
populate_series_in_tahrir_db = "tahrir_api.scripts.populateseries:main"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"


9 changes: 0 additions & 9 deletions requirements.txt

This file was deleted.

47 changes: 0 additions & 47 deletions setup.py

This file was deleted.

17 changes: 7 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ envlist = py3{8,9}
skip_missing_interpreters = True

[testenv]
deps =
coverage
nose
commands =
nosetests --with-coverage --cover-erase --cover-min-percentage=71 --cover-package=tahrir_api --cover-xml
passenv = HOME

[testenv:diff-cover]
deps =
diff-cover
skip_install = true
sitepackages = false
allowlist_externals =
poetry
commands_pre =
poetry install --all-extras
commands =
diff-cover coverage.xml --compare-branch=origin/develop --fail-under=100
poetry run nosetests --with-coverage --cover-erase --cover-min-percentage=71 --cover-package=tahrir_api --cover-xml

0 comments on commit 3e0b926

Please sign in to comment.