Skip to content

Commit

Permalink
Merge pull request #35 from chinapandaman/PPF-29
Browse files Browse the repository at this point in the history
PPF-29: setup pip prod
  • Loading branch information
chinapandaman authored Oct 31, 2020
2 parents 448cc68 + 7ce730a commit abe0adc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ jobs:
- name: Build and publish to TestPyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ drawing image and merging multiple PDFs together.
Install using [pip](https://pip.pypa.io/en/stable/quickstart/):

`````commandline
pip install -i https://test.pypi.org/simple/ PyPDFForm
pip install -U PyPDFForm
`````

## Quick Example
Expand Down
3 changes: 0 additions & 3 deletions requirements-deploy.txt

This file was deleted.

12 changes: 9 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
with open("README.md", "r") as fh:
long_description = fh.read()

with open("requirements-deploy.txt", "r") as requirements:
dependencies = [each.replace("\n", "") for each in requirements.readlines() if each]
dev_dependencies = ["black", "isort", "pytest"]

with open("requirements.txt", "r") as requirements:
dependencies = [
each.replace("\n", "")
for each in requirements.readlines()
if each.replace("\n", "") not in dev_dependencies
]

setuptools.setup(
name="PyPDFForm",
version="0.0.5",
version="0.0.6",
author="Jinge Li",
description="python library for PDF forms",
long_description=long_description,
Expand Down

0 comments on commit abe0adc

Please sign in to comment.