minimal version of packsge
This commit is contained in:
parent
8b0d2c0609
commit
a891b29215
7
LICENSE
Normal file
7
LICENSE
Normal file
@ -0,0 +1,7 @@
|
||||
Copyright 2023.03.13 Ekaterina Kuznetsova, Andrei Shtykovsky
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
3
MANIFEST.in
Normal file
3
MANIFEST.in
Normal file
@ -0,0 +1,3 @@
|
||||
include LICENSE
|
||||
include README.rst
|
||||
include pyproject.toml
|
0
README.rst
Normal file
0
README.rst
Normal file
@ -12,6 +12,13 @@ MJDREF = Time(51543.875, format='mjd') #corresponds to date 01.01.2000 00:00
|
||||
TZ_UTC = TimezoneInfo(utc_offset=0*u.hour) #UTC time zone
|
||||
TZ_MSK = TimezoneInfo(utc_offset=3*u.hour) #UTC+3 (Moscow) time zone
|
||||
|
||||
from pkg_resources import get_distribution, DistributionNotFound
|
||||
|
||||
try:
|
||||
__version__ = get_distribution(__name__).version
|
||||
except DistributionNotFound:
|
||||
pass # package is not installed
|
||||
|
||||
|
||||
class MissionTime(object):
|
||||
|
||||
@ -226,6 +233,8 @@ class ArtTime(object):
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
|
||||
mtime = 692659102.9999999
|
||||
aday = 8016.887708333336
|
||||
utc = 1639322302.999999
|
||||
@ -254,4 +263,6 @@ def main():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
__version__ = '1.0'
|
||||
|
||||
main()
|
3
pyproject.toml
Normal file
3
pyproject.toml
Normal file
@ -0,0 +1,3 @@
|
||||
[build-system]
|
||||
requires = ["setuptools", "wheel", "setuptools_scm"]
|
||||
build-backend = 'setuptools.build_meta'
|
16
setup.cfg
Normal file
16
setup.cfg
Normal file
@ -0,0 +1,16 @@
|
||||
[metadata]
|
||||
name = arttime
|
||||
description = ART-XC time converter
|
||||
version = 1.0
|
||||
long_description = file: README.rst
|
||||
author = Kuznetsova E., Shtykovsky A.
|
||||
author_email = eakuznetsova@cosmos.ru
|
||||
url =
|
||||
license = MIT License
|
||||
|
||||
[options]
|
||||
zip_safe = False
|
||||
packages = find:
|
||||
install_requires =
|
||||
datetime
|
||||
astropy
|
Loading…
x
Reference in New Issue
Block a user