diff --git a/.github/workflows/ci-bsdd-pypi.yaml b/.github/workflows/ci-bsdd-pypi.yaml new file mode 100644 index 0000000000..ffa7bbba18 --- /dev/null +++ b/.github/workflows/ci-bsdd-pypi.yaml @@ -0,0 +1,48 @@ +name: ci-ifctester-pypi + +on: + schedule: + # ┌───────────── minute (0 - 59) + # │ ┌───────────── hour (0 - 23) + # │ │ ┌───────────── day of the month (1 - 31) + # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) + # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) + # * * * * * + - cron: "0 0 18 * *" + workflow_dispatch: + +env: + major: 0 + minor: 0 + name: ifcopenshell + +jobs: + activate: + runs-on: ubuntu-latest + if: | + github.repository == 'IfcOpenShell/IfcOpenShell' + steps: + - name: Set env + run: echo ok go + + build: + needs: activate + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 # https://github.com/actions/setup-python + with: + python-version: '3.11' # Version range or exact version of a Python version to use, using SemVer's version range syntax + - name: Compile + run: | + pip install build + cd src/bsdd && + make dist + - name: Publish a Python distribution to PyPI + uses: ortega2247/pypi-upload-action@master + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} + packages_dir: src/bsdd/dist diff --git a/.github/workflows/ci-ifctester-pypi.yml b/.github/workflows/ci-ifctester-pypi.yml index d1302e38f3..24226acd86 100644 --- a/.github/workflows/ci-ifctester-pypi.yml +++ b/.github/workflows/ci-ifctester-pypi.yml @@ -9,9 +9,6 @@ on: # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) # * * * * * - cron: "0 0 18 * *" - push: - paths: - - '.github/workflows/ci-ifctester-pypi.yml' workflow_dispatch: env: @@ -30,7 +27,6 @@ jobs: build: needs: activate - name: ${{ matrix.config.name }}-${{ matrix.pyver }} runs-on: ubuntu-latest strategy: fail-fast: false @@ -38,12 +34,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 # https://github.com/actions/setup-python with: - python-version: '3.10' # Version range or exact version of a Python version to use, using SemVer's version range syntax - architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified - - run: echo ${{ env.DATE }} - - name: Get current date - id: date - run: echo "::set-output name=date::$(date +'%y%m%d')" + python-version: '3.11' # Version range or exact version of a Python version to use, using SemVer's version range syntax - name: Compile run: | pip install build diff --git a/src/bsdd/__about__.py b/src/bsdd/__about__.py deleted file mode 100644 index 47782d2864..0000000000 --- a/src/bsdd/__about__.py +++ /dev/null @@ -1,4 +0,0 @@ -# SPDX-FileCopyrightText: 2024-present IfcOpenShell Developers -# -# SPDX-License-Identifier: LGPL-3.0-or-later -__version__ = "0.1.0" diff --git a/src/bsdd/pyproject.toml b/src/bsdd/pyproject.toml index 72683258eb..2b9e471050 100644 --- a/src/bsdd/pyproject.toml +++ b/src/bsdd/pyproject.toml @@ -4,31 +4,32 @@ build-backend = "hatchling.build" [project] name = "bsdd" -dynamic = ["version"] -description = '' +version = "0.0.999999" +authors = [ + { name="Dion Moult", email="dion@thinkmoult.com" }, +] +description = "Library to interact with the buildingSMART Data Dictionary" readme = "README.md" requires-python = ">=3.8" -keywords = ["building smart data dictionaries"] +keywords = ["IFC", "bSDD", "BIM"] classifiers = [ - "Development Status :: 4 - Beta", - "Programming Language :: Python", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: Implementation :: CPython", - "Programming Language :: Python :: Implementation :: PyPy", + "Development Status :: 4 - Beta", + "Programming Language :: Python", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", + "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", ] dependencies = ["requests"] [project.urls] -Documentation = "https://github.com/IfcOpenShell/src/bsdd#readme" -Issues = "https://github.com/IfcOpenShell/issues" -Source = "https://github.com/IfcOpenShell/src/bsdd" - -[tool.hatch.version] -path = "__about__.py" +Homepage = "http://ifcopenshell.org" +Documentation = "https://docs.ifcopenshell.org" +Issues = "https://github.com/IfcOpenShell/IfcOpenShell/issues" [tool.hatch.envs.default] dependencies = [ @@ -39,6 +40,5 @@ dependencies = [ [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] - [tool.pytest.ini_options] -pythonpath = [".", "src"] \ No newline at end of file +pythonpath = [".", "src"] diff --git a/src/ifctester/pyproject.toml b/src/ifctester/pyproject.toml index 1936495312..0f7366efce 100644 --- a/src/ifctester/pyproject.toml +++ b/src/ifctester/pyproject.toml @@ -1,6 +1,7 @@ [build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" + [project] name = "ifctester" version = "0.0.999999" @@ -17,11 +18,15 @@ classifiers = [ dependencies = [ "ifcopenshell", ] + [project.urls] -"Homepage" = "http://ifcopenshell.org" -"Bug Tracker" = "https://github.com/ifcopenshell/ifcopenshell/issues" +Homepage = "http://ifcopenshell.org" +Documentation = "https://docs.ifcopenshell.org" +Issues = "https://github.com/IfcOpenShell/IfcOpenShell/issues" + [tool.setuptools.packages.find] include = ["ifctester"] exclude = ["test*"] + [tool.setuptools.package-data] ifctester = ["*.xsd", "templates/*.html"]