Skip to content

Commit

Permalink
migrate from setup.cfg to pyproject.toml (#93)
Browse files Browse the repository at this point in the history
* migrate to pyproject.toml

* install test reqs with optional group

* remove root requirements.txt too
  • Loading branch information
briantist authored Sep 29, 2023
1 parent a95c737 commit bffe509
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 54 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ jobs:
cache: pip

- name: Requirements
working-directory: tests
run: |
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install .[tests]
- name: Pytest
run: pytest tests/
Expand Down
52 changes: 51 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,56 @@
[project]
name = "galactory"
version = "0.10.0"
version = "0.10.1-dev0"
authors = [
{name = "Brian Scholer"},
]
maintainers = [
{name = "Brian Scholer"},
]
license = {file = "LICENSE"}
description = "Ansible Galaxy proxy using Artifactory as a backend"
readme = {file = "README.md", content-type = "text/markdown"}
keywords = [
"ansible",
"galaxy",
"artifactory",
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.8"

dependencies = [
"dohq-artifactory>=0.9,<0.10",
"Flask>=2.1,<3",
"semver>=2,<4",
"base64io>=1,<2",
"ConfigArgParse>=1.5,<2",
"requests>=2.26.0,<3",
"brotli>=1,<2",
]

[project.optional-dependencies]
tests = [
"pytest>=7.1,<8",
"pytest-cov",
"coverage",
# "pytest-docker-compose",
# "ansible-runner",
# "ansible-core",
]

[project.urls]
Repository = "https://github.com/briantist/galactory"
Changelog = "https://github.com/briantist/galactory/blob/main/CHANGELOG.rst"
Issues = "https://github.com/briantist/galactory/issues"

[build-system]
requires = ["setuptools", "wheel"]
Expand Down
7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.

37 changes: 0 additions & 37 deletions setup.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions tests/requirements.txt

This file was deleted.

0 comments on commit bffe509

Please sign in to comment.