Skip to content
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

Swap to pyproject.toml & hatchling #105

Merged
merged 1 commit into from
Nov 24, 2024
Merged
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: 12 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.7, 3.8]
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install deps
run: pip install requests-oauthlib
- name: Install deps & the package itself
run: |
pip install requests-oauthlib
pip install -e .
- name: Run tests...
run: python setup.py test
run: python -m unittest discover
10 changes: 0 additions & 10 deletions MANIFEST

This file was deleted.

13 changes: 0 additions & 13 deletions Pipfile

This file was deleted.

453 changes: 0 additions & 453 deletions Pipfile.lock

This file was deleted.

5 changes: 0 additions & 5 deletions myob/__init__.py

This file was deleted.

38 changes: 38 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "pymyob"
version = "1.2.24"
dependencies = [
"requests>=2.32.0",
"requests-oauthlib>=2.0.0",
]
requires-python = ">= 3.8"
authors = [
{name = "Jarek Głowacki", email = "[email protected]"}
]
maintainers = [
{name = "Jarek Głowacki", email = "[email protected]"}
]
description = "A Python SDK for the MYOB Business (formerly AccountRight Live, and New Essentials) API."
readme = "README.md"
keywords = ["myob"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Topic :: Office/Business :: Financial :: Accounting",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]

[project.urls]
source = "https://github.com/uptick/pymyob"
releasenotes = "https://github.com/uptick/pymyob/releases"

[tool.hatch.build.targets.wheel]
packages = ["src/myob"]
28 changes: 0 additions & 28 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,31 +1,3 @@
[metadata]
name = pymyob
version = attr: myob.__version__
author = Jarek Głowacki
author_email = [email protected]
license = BSD
description = A Python API around MYOB's AccountRight API.
keywords = myob
url = https://github.com/uptick/pymyob
long_description = file: README.md
long_description_content_type = text/markdown
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Web Environment
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Topic :: Office/Business

[options]
packages = myob
install_requires =
requests>=2.10.0
requests-oauthlib>=0.6.0

[flake8]
ignore = E501
max-line-length = 100
Expand Down
3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

1 change: 1 addition & 0 deletions src/myob/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .api import Myob # noqa
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
To run the test suite, run `python setup.py test` from the root directory.
To run the test suite, run `python -m unittest discover` from the root directory.
Loading