File tree Expand file tree Collapse file tree 3 files changed +37
-6
lines changed
Expand file tree Collapse file tree 3 files changed +37
-6
lines changed Original file line number Diff line number Diff line change 1+ name : PyPI Deployment
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@master
13+ - name : Set up Python 3.7
14+ uses : actions/setup-python@v1
15+ with :
16+ python-version : 3.7
17+ - name : Install pypa/build
18+ run : >-
19+ python -m
20+ pip install --user --upgrade setuptools wheel twine
21+ build
22+ --user
23+ - name : Build a binary wheel and a source tarball
24+ run : >-
25+ python -m
26+ build
27+ --sdist
28+ --wheel
29+ --outdir dist/
30+ - name : Publish package
31+ uses : pypa/gh-action-pypi-publish@release/v1
32+ with :
33+ user : __token__
34+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 22# Read more about `setup.cfg`:
33# https://docs.python.org/3/distutils/configfile.html
44
5-
65[flake8]
76max-complexity = 6
87statistics = True
Original file line number Diff line number Diff line change @@ -29,10 +29,7 @@ def run_tests(self):
2929 sys .exit (errno )
3030
3131
32- with open ("LICENSE" ) as f :
33- LICENSE = f .read ()
34-
35- with open ("README.md" , "r" , "utf-8" ) as f :
32+ with open ("README.md" , encoding = "utf-8" ) as f :
3633 README = f .read ()
3734
3835
@@ -46,16 +43,17 @@ def get_version():
4643 version = get_version (),
4744 description = "Python client library for Crowdin API v2" ,
4845 long_description = README ,
46+ long_description_content_type = "text/markdown" ,
4947 author = "Сrowdin" ,
5048 author_email = "support@crowdin.com" ,
5149 url = "https://github.com/crowdin/crowdin-api-client-python" ,
5250 packages = find_packages (exclude = ["*tests*" , "*fixtures.py" ]),
5351 package_dir = {"crowdin_api" : "crowdin_api" },
5452 python_requires = ">=3.6.*" ,
53+ license = "MIT" ,
5554 install_requires = [
5655 "requests>=2.25.1" ,
5756 ],
58- license = LICENSE ,
5957 classifiers = [
6058 "Programming Language :: Python" ,
6159 "Programming Language :: Python :: 3" ,
You can’t perform that action at this time.
0 commit comments