mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Publish bSDD to PyPI
This commit is contained in:
@@ -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
|
||||||
@@ -9,9 +9,6 @@ on:
|
|||||||
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
|
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
|
||||||
# * * * * *
|
# * * * * *
|
||||||
- cron: "0 0 18 * *"
|
- cron: "0 0 18 * *"
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- '.github/workflows/ci-ifctester-pypi.yml'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -30,7 +27,6 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
needs: activate
|
needs: activate
|
||||||
name: ${{ matrix.config.name }}-${{ matrix.pyver }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -38,12 +34,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2 # https://github.com/actions/setup-python
|
- uses: actions/setup-python@v2 # https://github.com/actions/setup-python
|
||||||
with:
|
with:
|
||||||
python-version: '3.10' # Version range or exact version of a Python version to use, using SemVer's version range syntax
|
python-version: '3.11' # 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')"
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: |
|
run: |
|
||||||
pip install build
|
pip install build
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
# SPDX-FileCopyrightText: 2024-present IfcOpenShell Developers
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
||||||
__version__ = "0.1.0"
|
|
||||||
+20
-20
@@ -4,31 +4,32 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "bsdd"
|
name = "bsdd"
|
||||||
dynamic = ["version"]
|
version = "0.0.999999"
|
||||||
description = ''
|
authors = [
|
||||||
|
{ name="Dion Moult", email="dion@thinkmoult.com" },
|
||||||
|
]
|
||||||
|
description = "Library to interact with the buildingSMART Data Dictionary"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.8"
|
requires-python = ">=3.8"
|
||||||
keywords = ["building smart data dictionaries"]
|
keywords = ["IFC", "bSDD", "BIM"]
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Development Status :: 4 - Beta",
|
"Development Status :: 4 - Beta",
|
||||||
"Programming Language :: Python",
|
"Programming Language :: Python",
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
"Programming Language :: Python :: Implementation :: CPython",
|
"Programming Language :: Python :: Implementation :: CPython",
|
||||||
"Programming Language :: Python :: Implementation :: PyPy",
|
"Programming Language :: Python :: Implementation :: PyPy",
|
||||||
|
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
|
||||||
]
|
]
|
||||||
dependencies = ["requests"]
|
dependencies = ["requests"]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Documentation = "https://github.com/IfcOpenShell/src/bsdd#readme"
|
Homepage = "http://ifcopenshell.org"
|
||||||
Issues = "https://github.com/IfcOpenShell/issues"
|
Documentation = "https://docs.ifcopenshell.org"
|
||||||
Source = "https://github.com/IfcOpenShell/src/bsdd"
|
Issues = "https://github.com/IfcOpenShell/IfcOpenShell/issues"
|
||||||
|
|
||||||
[tool.hatch.version]
|
|
||||||
path = "__about__.py"
|
|
||||||
|
|
||||||
[tool.hatch.envs.default]
|
[tool.hatch.envs.default]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
@@ -39,6 +40,5 @@ dependencies = [
|
|||||||
[[tool.hatch.envs.all.matrix]]
|
[[tool.hatch.envs.all.matrix]]
|
||||||
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||||
|
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
pythonpath = [".", "src"]
|
pythonpath = [".", "src"]
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=61.0"]
|
requires = ["setuptools>=61.0"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "ifctester"
|
name = "ifctester"
|
||||||
version = "0.0.999999"
|
version = "0.0.999999"
|
||||||
@@ -17,11 +18,15 @@ classifiers = [
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"ifcopenshell",
|
"ifcopenshell",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
"Homepage" = "http://ifcopenshell.org"
|
Homepage = "http://ifcopenshell.org"
|
||||||
"Bug Tracker" = "https://github.com/ifcopenshell/ifcopenshell/issues"
|
Documentation = "https://docs.ifcopenshell.org"
|
||||||
|
Issues = "https://github.com/IfcOpenShell/IfcOpenShell/issues"
|
||||||
|
|
||||||
[tool.setuptools.packages.find]
|
[tool.setuptools.packages.find]
|
||||||
include = ["ifctester"]
|
include = ["ifctester"]
|
||||||
exclude = ["test*"]
|
exclude = ["test*"]
|
||||||
|
|
||||||
[tool.setuptools.package-data]
|
[tool.setuptools.package-data]
|
||||||
ifctester = ["*.xsd", "templates/*.html"]
|
ifctester = ["*.xsd", "templates/*.html"]
|
||||||
|
|||||||
Reference in New Issue
Block a user