-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1cd7bdb
commit 444d117
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,27 @@ jobs: | |
# Actually create the tag and upload the atlas script | ||
npx [email protected] | ||
# Release to PyPi | ||
- name: Install dependencies | ||
run: pip install pip | ||
|
||
- name: Install Dependencies | ||
run: pip install setuptools wheel | ||
|
||
- name: Build package | ||
run: python setup.py sdist bdist_wheel | ||
|
||
- name: Update the tag version in setup.py | ||
if: env.NEXT_VERSION | ||
run: | | ||
NEXT_VERSION_PYPI=${NEXT_VERSION:1} # Remove the leading 'v' to match PyPi's versioning scheme | ||
sed -i -e "s/version=.*,/version='$NEXT_VERSION_PYPI' # tagged by release.yml,/" setup.py | ||
cat setup.py | ||
- name: Publish to PyPi | ||
if: env.NEXT_VERSION | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_UPLOAD_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
""" | ||
Dummy package only to ensure `pip install` works on this package. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
|
||
from setuptools import setup | ||
|
||
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() | ||
|
||
setup( | ||
name='openedx-atlas', | ||
version='0.0.dev1', | ||
description='An Open edX CLI tool for moving translation files from openedx-translations.', | ||
long_description=README, | ||
author='Open edX project', | ||
author_email='[email protected]', | ||
url='https://github.com/openedx/openedx-atlas', | ||
packages=['openedx_atlas'], | ||
scripts=['atlas'], | ||
license='AGPL 3.0', | ||
classifiers=[ | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', | ||
'Natural Language :: English', | ||
], | ||
) |