Skip to content

Commit 30b31f8

Browse files
committed
new: add build
1 parent d224534 commit 30b31f8

2 files changed

Lines changed: 35 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Upload Python Package
2+
3+
on:
4+
push:
5+
# Sequence of patterns matched against refs/tags
6+
tags:
7+
- '*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
permissions:
12+
contents: write
13+
jobs:
14+
deploy:
15+
needs: release
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v1
19+
- name: Set up Python
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: '3.x'
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install setuptools wheel twine gitchangelog pystache
27+
- name: Build and publish
28+
env:
29+
TWINE_USERNAME: __token__
30+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
31+
run: |
32+
python setup.py sdist bdist_wheel
33+
twine upload dist/*

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
long_description = rfd.read()
55

66
setuptools.setup(
7-
name='fast-enum',
7+
name='fastenumplus',
88
version='1.4.0',
99
license='MIT',
1010
platforms=['any'],
@@ -13,7 +13,7 @@
1313
description='A fast pure-python implementation of Enum',
1414
long_description=long_description,
1515
long_description_content_type='text/markdown',
16-
url='https://github.com/QratorLabs/fastenum',
16+
url='https://github.com/hiddify/fastenum',
1717
packages=['fast_enum'],
1818
classifiers=[
1919
'License :: OSI Approved :: MIT License',

0 commit comments

Comments
 (0)