-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from m-d-grunnill/master
1.3.0 relsease
- Loading branch information
Showing
4 changed files
with
153 additions
and
36 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
run: python -m build | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
from beast2xml.beast2 import BEAST2XML | ||
|
||
# Note that the version string must have the following format, otherwise it | ||
# will not be found by the version() function in ../setup.py | ||
__version__ = "1.1.0" | ||
|
||
__all__ = ["BEAST2XML"] |
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
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 |
---|---|---|
|
@@ -3,30 +3,14 @@ | |
from setuptools import setup | ||
|
||
|
||
# Modified from http://stackoverflow.com/questions/2058802/ | ||
# how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package | ||
def version(): | ||
import os | ||
import re | ||
|
||
init = os.path.join("beast2xml", "__init__.py") | ||
with open(init) as fp: | ||
initData = fp.read() | ||
match = re.search(r"^__version__ = ['\"]([^'\"]+)['\"]", initData, re.M) | ||
if match: | ||
return match.group(1) | ||
else: | ||
raise RuntimeError("Unable to find version string in %r." % init) | ||
|
||
|
||
setup( | ||
name="beast2-xml", | ||
version=version(), | ||
version="1.3.0", | ||
packages=["beast2xml"], | ||
package_data={"beast2xml": ["templates/*.xml"]}, | ||
url="https://github.com/acorg/beast2-xml", | ||
download_url="https://github.com/acorg/beast2-xml", | ||
author="Terry Jones", | ||
author="Terry Jonesl", | ||
author_email="[email protected]", | ||
keywords=["BEAST2", "XML"], | ||
classifiers=[ | ||
|
@@ -44,8 +28,11 @@ def version(): | |
long_description=("Please see https://github.com/acorg/beast2-xml for details."), | ||
license="MIT", | ||
scripts=["bin/beast2-xml.py", "bin/beast2-xml-version.py"], | ||
install_requires=["dark-matter>=1.1.28", | ||
'pandas>=2.2.2', | ||
'python=3.10', | ||
'six'], | ||
install_requires=[ | ||
"dark-matter>=1.1.28", | ||
"pandas>=2.2.2", | ||
"python=3.10", | ||
"ete3", | ||
"six", | ||
], | ||
) |