diff --git a/.gitea/workflows/run.yaml b/.gitea/workflows/run.yaml index 5f67baf..69523cd 100644 --- a/.gitea/workflows/run.yaml +++ b/.gitea/workflows/run.yaml @@ -28,7 +28,9 @@ jobs: git config --global user.email 'gitea@gitea.moerks.dk' pipenv run bumpver update --minor - name: Build Package - run: pipenv run python -m build + run: | + pipenv requirements > requirements.txt + pipenv run python -m build - name: Publish Package run: | export TWINE_USERNAME=${{ secrets.TWINE_USER }} diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 46e3820..0000000 --- a/requirements.txt +++ /dev/null @@ -1,13 +0,0 @@ --i https://pypi.org/simple -annotated-types==0.6.0 ; python_version >= '3.8' -certifi==2024.2.2 ; python_version >= '3.6' -charset-normalizer==3.3.2 ; python_full_version >= '3.7.0' -idna==3.7 ; python_version >= '3.5' -loguru==0.7.2 -oauthlib==3.2.2 ; python_version >= '3.6' -pydantic==2.7.1 -pydantic-core==2.18.2 ; python_version >= '3.8' -requests==2.31.0 -requests-oauthlib==2.0.0 -typing-extensions==4.11.0 ; python_version >= '3.8' -urllib3==2.2.1 ; python_version >= '3.8' diff --git a/setup.py b/setup.py index 61ccdda..472914b 100644 --- a/setup.py +++ b/setup.py @@ -3,6 +3,9 @@ from setuptools import find_packages, setup with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() +with open('requirements.txt') as f: + required = f.read().splitlines() + setup( name='pymastodon', version='0.4.0', @@ -18,4 +21,5 @@ setup( license='MIT', package_dir={"": "src"}, packages=find_packages(where="src"), + install_requires=required )