Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/pypi-siriuspy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
runs-on: ubuntu-22.04
Comment thread
fernandohds564 marked this conversation as resolved.

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install setuptools wheel twine build

- name: Build and publish
env:
Expand All @@ -26,6 +26,6 @@ jobs:
run: |
git describe --tags | sed -e 's/^v//g' > VERSION
cd siriuspy
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
cd ..
7 changes: 4 additions & 3 deletions .github/workflows/test-siriuspy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ on: [push]

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ${{matrix.os}}
strategy:
matrix:
python-version: [3.9, 3.11]
os: [ubuntu-22.04, ubuntu-24.04]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
10 changes: 3 additions & 7 deletions siriuspy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,23 @@ ifeq ($(CONDA_PREFIX),)
endif

install: uninstall
$(PREFIX) $(PIP) install --no-use-pep517 --no-deps ./
# $(PREFIX) $(PIP) install --no-deps ./
$(PREFIX) $(PIP) install --no-deps ./
$(PREFIX) git clean -fdX

uninstall:
$(PREFIX) $(PIP) uninstall -y $(PACKAGE)

develop-install: develop-uninstall
$(PIP) install --no-use-pep517 --no-deps -e ./
# $(PIP) install --no-deps -e ./
$(PIP) install --no-deps -e ./

# known issue: It will fail to uninstall scripts
# if they were installed in develop mode
develop-uninstall:
$(PIP) uninstall -y $(PACKAGE)

test:
pytest tests/

dist: ## Build setuptools dist
python setup.py sdist bdist_wheel
python -m build

distupload: ## Upload package dist to PyPi
python -m twine upload --verbose dist/*
Expand Down
85 changes: 38 additions & 47 deletions siriuspy/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,57 +1,48 @@
# [build-system]
# requires = ["setuptools >= 61.0"]
# build-backend = "setuptools.build_meta"
[build-system]
requires = ["setuptools>=44"]
build-backend = "setuptools.build_meta"

# [project]
# name = "siriuspy"
# version = "2.85.0"
# dependencies = [
# "aiohttp>=3.7.4",
# "bottleneck>=1.3.2",
# "mathphys",
# "numpy>=1.18",
# "pyepics>=3.4.0",
# "python-dateutil>=2.8.1",
# "requests>=2.22.0",
# "six>=1.13.0",
# "pyyaml",
# ]
# requires-python = ">=3.6"
# authors = [
# {name = "lnls-sirius"},
# ]
# maintainers = [
# {name = "Ana Oliveira", email = "ana.clara@lnls.br"},
# {name = "Ximenes Resende", email = "xresende@gmail.com"},
# {name = "Fernando H. de Sá", email = "fernandohds564@gmail.com"},
# {name = "Murilo Barbosa Alves", email= "murilo.alves@lnls.br"}
# ]
# description = "Development packages for SIRIUS"
# readme = "README.md"
# license = {file = "LICENSE.txt"}
# keywords = ["SIRIUS", "python", "EPICS"]
# classifiers = [
# "Intended Audience :: Science/Research",
# "Programming Language :: Python",
# "Topic :: Scientific/Engineering",
# ]
[project]
name = "siriuspy"
authors = [{ name = "lnls-sirius" } ]
maintainers = [
{name = "Ana Oliveira", email = "ana.clara@lnls.br"},
{name = "Ximenes Resende", email = "xresende@gmail.com"},
{name = "Fernando H. de Sá", email = "fernandohds564@gmail.com"},
{name = "Murilo Barbosa Alves", email= "alvesb.murilo@gmail.com"}
]
description = "Development packages for Sirius"
readme = "README.md"
dynamic = ["version", "dependencies"]
requires-python = ">=3.6"
classifiers = [
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
]
keywords = ["SIRIUS", "python", "EPICS"]

# [project.urls]
# # Homepage = ""
# # Documentation = ""
# Repository = "https://github.com/lnls-sirius/dev-packages"
# "Bug Tracker" = "https://github.com/lnls-sirius/dev-packages/issues"
# # Changelog = ""
license = "GPL-3.0"
license-files= [ "LICENSE", ]

# # [project.optional-dependencies]
# # gui = []
# # cli = []
[project.urls]
Homepage = "https://github.com/lnls-sirius/dev-packages"
Download = "https://github.com/lnls-sirius/dev-packages"
Repository = "https://github.com/lnls-sirius/dev-packages.git"
Issues = "https://github.com/lnls-sirius/dev-packages/issues"

# # [project.scripts]
# --- Setuptools specific configurations ---
[tool.setuptools]
include-package-data = true

# # [project.gui-scripts]
[tool.setuptools.dynamic]
version = { file = "VERSION" }
dependencies = { file = "requirements.txt" }

[tool.setuptools.package-data]
siriuspy = ["VERSION"]

# --- linter and formatter configurations ---
[tool.ruff]
select = [
"W", "E", "A", "B", "C90", "D", "I002", "N", "F", "G", "ARG", "S", "NPY"]
Expand Down
6 changes: 4 additions & 2 deletions siriuspy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

"""Siriuspy setup script."""

import pkg_resources
import pathlib

from setuptools import find_packages, setup


def get_abs_path(relative):
return pkg_resources.resource_filename(__name__, relative)
"""."""
return str(pathlib.Path(__file__).parent / relative)


with open(get_abs_path("README.md"), "r") as _f:
Expand Down