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
31 changes: 0 additions & 31 deletions INSTALL

This file was deleted.

8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,14 @@ 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)
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@

# apsuite
Accelerator Physics suite

For installation instructions, read INSTALL.
76 changes: 39 additions & 37 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,47 +1,49 @@
# [build-system]
# requires = ["setuptools >= 61.0"]
# build-backend = "setuptools.build_meta"
[build-system]
requires = ["setuptools>=44"]
build-backend = "setuptools.build_meta"

# [project]
# name = "apsuite"
# version = "2.50.0"
# dependencies = []
# requires-python = ">=3.6"
# authors = [
# {name = "lnls-fac"},
# ]
# 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 = "High level Accelerator Physics functions"
# readme = "README.md"
# license='MIT'
# keywords = ["SIRIUS", "python", "EPICS", "Accelerator Physics"]
# classifiers = [
# "Intended Audience :: Science/Research",
# "Programming Language :: Python",
# "Topic :: Scientific/Engineering",
# ]
[project]
name = "apsuite"
authors = [{ name = "lnls-fac" } ]
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 = "High level Accelerator Physics functions"
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", "Accelerator Physics"]

# [project.urls]
# # Homepage = ""
# # Documentation = ""
# Repository = "https://github.com/lnls-fac/apsuite"
# "Bug Tracker" = "https://github.com/lnls-fac/apsuite/issues"
# # Changelog = ""
license = "MIT"
license-files= [ "LICENSE", ]

# # [project.optional-dependencies]
# # gui = []
# # cli = []
[project.urls]
Homepage = "https://github.com/lnls-fac/apsuite"
Download = "https://github.com/lnls-fac/apsuite"
Repository = "https://github.com/lnls-fac/apsuite.git"
Issues = "https://github.com/lnls-fac/apsuite/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]
apsuite = ["VERSION"]
"apsuite.loco" = ['*.jpg', ]

# --- linter and formatter configurations ---
[tool.ruff]
select = [
"W", "E", "A", "B", "C90", "D", "I002", "N", "F", "G", "ARG", "S", "NPY"]
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
numpy>=1.8
scipy>=1.3
mathphys>=0.7
matplotlib>=1.4
25 changes: 22 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
#!/usr/bin/env python-sirius

from setuptools import setup, find_packages
import pathlib

from setuptools import find_packages, setup

with open('VERSION', 'r') as _f:

def get_abs_path(relative):
"""."""
return str(pathlib.Path(__file__).parent / relative)


with open(get_abs_path("README.md"), "r") as _f:
_long_description = _f.read().strip()


with open(get_abs_path("VERSION"), "r") as _f:
__version__ = _f.read().strip()


with open(get_abs_path("requirements.txt"), "r") as _f:
_requirements = _f.read().strip().split("\n")


setup(
name='apsuite',
version=__version__,
author='lnls-fac',
description='High level Accelerator Physics functions',
long_description=_long_description,
url='https://github.com/lnls-fac/apsuite',
download_url='https://github.com/lnls-fac/apsuite',
license='MIT License',
Expand All @@ -20,8 +37,10 @@
'Topic :: Scientific/Engineering'
],
packages=find_packages(),
install_requires=_requirements,
package_data={
'apsuite': ['VERSION'],
'apsuite.loco': ['*.jpg', ],
},
zip_safe=False)
zip_safe=False
)