Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@ uninstall:
develop-install: develop-uninstall
$(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)

help: ## Show this help.
@grep '##' Makefile| sed -e '/@/d' | sed -r 's,(.*?:).*##(.*),\1\2,g'

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
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[build-system]
requires = ["setuptools>=44"]
Comment thread
Gabrielrezende-asc marked this conversation as resolved.
Outdated
build-backend = "setuptools.build_meta"

[project]
name = "imaids"
authors = [{ name = "lnls-ima" } ]
Comment thread
Gabrielrezende-asc marked this conversation as resolved.
Outdated
maintainers = [
{name = "Gabriel Rezende da Ascenção", email = "gabriel.ascencao@lnls.br"},
{name = "Jefferson Barros Vieira", email = "jefferson.vieira@lnls.br"},
{name = "Sergio Augusto Lordano Luiz", email = "sergio.lordano@lnls.br"},
]
description = "Insertion Devices Package"
readme = "README.md"
dynamic = ["version", "dependencies"]
requires-python = ">=3.6"
Comment thread
Gabrielrezende-asc marked this conversation as resolved.
Outdated
classifiers = [
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
]
keywords = ["SIRIUS", "python", "Accelerator Physics", "Insertion Devices"]

license = "MIT"
license-files= [ "LICENSE", ]

[project.urls]
Homepage = "https://github.com/lnls-ids/insertion-devices"
Download = "https://github.com/lnls-ids/insertion-devices"
Repository = "https://github.com/lnls-ids/insertion-devices.git"
Issues = "https://github.com/lnls-ids/insertion-devices/issues"

[project.optional-dependencies]
tests = ["nose"]

# --- Setuptools specific configurations ---
[tool.setuptools]
packages = ["imaids"]
include-package-data = true

[tool.setuptools.dynamic]
version = { file = "VERSION" }
dependencies = { file = "requirements.txt" }

[tool.setuptools.package-data]
imaids = ["VERSION", "presets/*"]
44 changes: 0 additions & 44 deletions setup.py

This file was deleted.