Skip to content

Commit

Permalink
mfid v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
edbarnard committed Feb 5, 2025
1 parent 9c20258 commit c64f8e2
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Publish Python distribution to PyPI

on: workflow_dispatch

jobs:
build:
name: Build distribution
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: Publish Python distribution to PyPI
# if: startsWith(github.event.ref, 'refs/tags/') # only if tagged

needs:
- build
runs-on: ubuntu-latest

environment:
name: release
url: https://pypi.org/p/mfid

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

25 changes: 25 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from setuptools import setup

setup(
name = 'mfid',

version = '1.0.0',

description = 'MFID: a Mighty Fine Identifier',
long_description =open('README.md', 'r').read(),
long_description_content_type='text/markdown',

# Author details
author='Edward S. Barnard',
author_email='[email protected]',

# license
license='BSD',

url='https://github.com/MolecularFoundry/mfid',

py_modules=["mfid"],

install_requires=["uuid7"],

)

0 comments on commit c64f8e2

Please sign in to comment.