Skip to content

Commit 0e39a46

Browse files
package setup and github testpypi action
1 parent 39270fe commit 0e39a46

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflows will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Upload Python Package
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: '3.x'
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install setuptools wheel twine
25+
- name: Build and publish
26+
env:
27+
TWINE_USERNAME: ${{ secrets.TESTPYPI_USERNAME }}
28+
TWINE_PASSWORD: ${{ secrets.TESTPYPI_PASSWORD }}
29+
run: |
30+
python setup.py sdist bdist_wheel
31+
twine upload --repository testpypi dist/*

setup.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import setuptools
2+
3+
with open("README.md", "r") as fh:
4+
long_description = fh.read()
5+
6+
setuptools.setup(
7+
name="pyvba",
8+
version="0.5.0",
9+
author="TheEric960",
10+
description="Mine data from and write scrips for VBA applications on Windows.",
11+
long_description=long_description,
12+
long_description_content_type="text/markdown",
13+
url="https://github.com/TheEric960/pyvba",
14+
packages=setuptools.find_packages(),
15+
classifiers=[
16+
"Development Status :: 3 - Alpha",
17+
"Environment :: Win32 (MS Windows)",
18+
"License :: OSI Approved :: MIT License",
19+
"Natural Language :: English",
20+
"Operating System :: Microsoft :: Windows",
21+
"Programming Language :: Python :: 3.7",
22+
],
23+
python_requires='>=3.7',
24+
)

0 commit comments

Comments
 (0)