File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
2828 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
2929 run : |
30+ ./scripts/version.sh
3031 python setup.py sdist bdist_wheel
3132 twine upload dist/*
Original file line number Diff line number Diff line change 77* .xml
88htmlcov /
99.pylint.d /
10- .cache /
10+ .cache /
11+ .eggs /
Original file line number Diff line number Diff line change 11"""Archivist SDK
2+
3+ WARNING: Do **not** edit directly
4+ This file is auto-generated by ./scripts/version.sh
25"""
6+ __version__ = "0.0.1"
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ #
3+ # inserts version into python package
4+ #
5+ version=$( python3 setup.py --version)
6+
7+ cat> archivist/__init__.py << EOF
8+ """Archivist SDK
9+
10+ WARNING: Do **not** edit directly
11+ This file is auto-generated by ./scripts/version.sh
12+ """
13+ __version__ = "$version "
14+ EOF
Original file line number Diff line number Diff line change 66import os
77from setuptools import setup , find_packages
88
9+ HERE = os .path .dirname (__file__ )
910REPO_URL = 'https://github.com/jitsuin-inc/archivist-python/'
1011NAME = "jitsuin-archivist"
1112
12- with open ('README.md' ) as FF :
13+ with open (os . path . join ( HERE , 'README.md' ) ) as FF :
1314 DESC = FF .read ()
1415
15- with open ('requirements.txt' ) as FF :
16+ with open (os . path . join ( HERE , 'requirements.txt' ) ) as FF :
1617 requirements = [f"{ line .strip ()} " for line in FF ]
1718
1819setup (
1920 name = NAME ,
20- version = "0.1.0alpha3" ,
2121 author = "Jitsuin Inc." ,
2222 author_email = "support@jitsuin.com" ,
2323 description = "Jitsuin Archivist Client" ,
3636 'Topic :: Utilities' # https://pypi.org/classifiers/ # check another option client-sdk
3737 ],
3838 install_requires = requirements ,
39+ version_config = {
40+ "template" : "{tag}" ,
41+ "dev_template" : "{tag}.post{ccount}+git.{sha}" ,
42+ "dirty_template" : "{tag}.post{ccount}+git.{sha}.dirty" ,
43+ "version_callback" : None ,
44+ "version_file" : None ,
45+ "count_commits_from_version_file" : False ,
46+ },
47+ setup_requires = ['setuptools-git-versioning' ],
3948 python_requires = '>=3.6' ,
4049 entry_points = {
4150 'console_scripts' : [
You can’t perform that action at this time.
0 commit comments