Skip to content

Update project build from setup.py to poetry #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ jobs:
# Display the Python version being used
- name: Display Python version
run: python -c "import sys; print(sys.version)"
# Install the package using the setup.py
- name: Install package
run: pip install -e .
# Install coverage (you can use some other testing utility)
- name: Install coverage
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install coverage
# Run the tests. I'm using unittest and coverage and the file is in the tests directory.
pip install poetry
# Install the package dependencies
- name: Install package dependencies
run: poetry install
# Install coverage (you can use some other testing utility)
- name: Install coverage
run: pip install coverage
# Run the tests. I'm using unittest and coverage, and the file is in the tests' directory.
- name: Run tests
run: coverage run -m unittest
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,5 @@ notes.md
guide.md
.DS_Store
junk*
.pypirc
.pypirc
.idea/
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

314 changes: 314 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 35 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
[tool.poetry]
name = "pythepeer"
version = "0.0.7"
description = "official python sdk for interacting with thepeer payment processing infrastructure"
authors = ["Osagie Iyayi <iyayiemmanuel1@gmail.com>"]
readme = "README.md"
packages = [{ include = "thepeer" }]
keywords = ["thepeer", "pythepeer", "fintech", "peer-to-peer"]
license = "MIT"
classifiers = [
"Development Status :: 5 - Production/Stable",
# Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable"
# as the current state of your package
"Intended Audience :: Developers", # Define that your audience are developers
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License", # Again, pick a license
"Programming Language :: Python :: 3",
# Specify which python versions that you want to support
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
]

[tool.poetry.dependencies]
python = "^3.9"
httpx = "^0.24.1"


[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
ruff = "^0.0.287"

[build-system]
requires = ["setuptools>=42", "httpx"]
build-backend = "setuptools.build_meta"
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

Empty file removed setup.cfg
Empty file.
Loading