move to hatch-based build
This commit is contained in:
		
							parent
							
								
									f489eb6e06
								
							
						
					
					
						commit
						08a9328390
					
				
							
								
								
									
										1
									
								
								opencl_fdtd/LICENSE.md
									
									
									
									
									
										Symbolic link
									
								
							
							
						
						
									
										1
									
								
								opencl_fdtd/LICENSE.md
									
									
									
									
									
										Symbolic link
									
								
							@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					../LICENSE.md
 | 
				
			||||||
							
								
								
									
										1
									
								
								opencl_fdtd/README.md
									
									
									
									
									
										Symbolic link
									
								
							
							
						
						
									
										1
									
								
								opencl_fdtd/README.md
									
									
									
									
									
										Symbolic link
									
								
							@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					../README.md
 | 
				
			||||||
@ -1,4 +0,0 @@
 | 
				
			|||||||
""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """
 | 
					 | 
				
			||||||
__version__ = '''
 | 
					 | 
				
			||||||
0.4
 | 
					 | 
				
			||||||
'''.strip()
 | 
					 | 
				
			||||||
@ -1,6 +1,5 @@
 | 
				
			|||||||
from .simulation import Simulation, type_to_C
 | 
					from .simulation import Simulation, type_to_C
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__author__ = 'Jan Petykiewicz'
 | 
					__author__ = 'Jan Petykiewicz'
 | 
				
			||||||
 | 
					__vesion__ = '0.4'
 | 
				
			||||||
from .VERSION import __version__
 | 
					 | 
				
			||||||
version = __version__
 | 
					version = __version__
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										46
									
								
								pyproject.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								pyproject.toml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,46 @@
 | 
				
			|||||||
 | 
					[build-system]
 | 
				
			||||||
 | 
					requires = ["hatchling"]
 | 
				
			||||||
 | 
					build-backend = "hatchling.build"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[project]
 | 
				
			||||||
 | 
					name = "opencl_fdtd"
 | 
				
			||||||
 | 
					description = "OpenCL FDTD solver"
 | 
				
			||||||
 | 
					readme = "README.md"
 | 
				
			||||||
 | 
					license = { file = "LICENSE.md" }
 | 
				
			||||||
 | 
					authors = [
 | 
				
			||||||
 | 
					    { name="Jan Petykiewicz", email="jan@mpxd.net" },
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					homepage = "https://mpxd.net/code/jan/opencl_fdtd"
 | 
				
			||||||
 | 
					repository = "https://mpxd.net/code/jan/opencl_fdtd"
 | 
				
			||||||
 | 
					keywords = [
 | 
				
			||||||
 | 
					    "FDTD",
 | 
				
			||||||
 | 
					    "finite",
 | 
				
			||||||
 | 
					    "difference",
 | 
				
			||||||
 | 
					    "time",
 | 
				
			||||||
 | 
					    "domain",
 | 
				
			||||||
 | 
					    "simulation",
 | 
				
			||||||
 | 
					    "optics",
 | 
				
			||||||
 | 
					    "electromagnetic",
 | 
				
			||||||
 | 
					    "dielectric",
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					classifiers = [
 | 
				
			||||||
 | 
					    "Programming Language :: Python :: 3",
 | 
				
			||||||
 | 
					    "Development Status :: 4 - Beta",
 | 
				
			||||||
 | 
					    "Intended Audience :: Developers",
 | 
				
			||||||
 | 
					    "Intended Audience :: Manufacturing",
 | 
				
			||||||
 | 
					    "Intended Audience :: Science/Research",
 | 
				
			||||||
 | 
					    "License :: OSI Approved :: GNU Affero General Public License v3",
 | 
				
			||||||
 | 
					    "Topic :: Scientific/Engineering",
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					requires-python = ">=3.8"
 | 
				
			||||||
 | 
					dynamic = ["version"]
 | 
				
			||||||
 | 
					dependencies = [
 | 
				
			||||||
 | 
					    "numpy~=1.21",
 | 
				
			||||||
 | 
					    "pyopencl",
 | 
				
			||||||
 | 
					    "jinja2",
 | 
				
			||||||
 | 
					    "meanas>=0.3",
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[tool.hatch.version]
 | 
				
			||||||
 | 
					path = "opencl_fdtd/__init__.py"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										32
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								setup.py
									
									
									
									
									
								
							@ -1,32 +0,0 @@
 | 
				
			|||||||
#!/usr/bin/env python3
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
from setuptools import setup, find_packages
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
with open('README.md', 'r') as f:
 | 
					 | 
				
			||||||
    long_description = f.read()
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
with open('opencl_fdtd/VERSION.py', 'rt') as f:
 | 
					 | 
				
			||||||
    version = f.readlines()[2].strip()
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
setup(name='opencl_fdtd',
 | 
					 | 
				
			||||||
      version=version,
 | 
					 | 
				
			||||||
      description='OpenCL FDTD solver',
 | 
					 | 
				
			||||||
      long_description=long_description,
 | 
					 | 
				
			||||||
      long_description_content_type='text/markdown',
 | 
					 | 
				
			||||||
      author='Jan Petykiewicz',
 | 
					 | 
				
			||||||
      author_email='jan@mpxd.net',
 | 
					 | 
				
			||||||
      url='https://mpxd.net/code/jan/opencl_fdtd',
 | 
					 | 
				
			||||||
      packages=find_packages(),
 | 
					 | 
				
			||||||
      package_data={
 | 
					 | 
				
			||||||
          'opencl_fdfd': ['kernels/*']
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      install_requires=[
 | 
					 | 
				
			||||||
            'numpy',
 | 
					 | 
				
			||||||
            'pyopencl',
 | 
					 | 
				
			||||||
            'jinja2',
 | 
					 | 
				
			||||||
            'meanas>=0.3',
 | 
					 | 
				
			||||||
      ],
 | 
					 | 
				
			||||||
      extras_require={
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      )
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user