Skip to content

Commit 078d68f

Browse files
committed
new: add build
1 parent d224534 commit 078d68f

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Set up Python
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: '3.x'
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install setuptools wheel twine gitchangelog pystache
26+
- name: Build and publish
27+
env:
28+
TWINE_USERNAME: __token__
29+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
30+
run: |
31+
python setup.py sdist bdist_wheel
32+
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)