Commit Graph

77 Commits

Author SHA1 Message Date
Greg Landrum
67f507a15c Some cmake cleanup work (#7720)
* cmake modernization

- get rid of some warnings
- switch to what I hope is the correct way of doing things
- bump min cmake version to 3.16
- bump min boost version to 1.70

This builds on linux

* remove some usages of PYTHON_EXECUTABLE

* remove old-school python usage from coverage tests

* remove unused CI file

* bump boost version for windows builds to 1.84

* still trying to get the ci builds working

* typo

* eventually the CI will work

* robustify some tests
2024-08-16 17:11:31 +02:00
Greg Landrum
ab152a4ed1 Switch over to using pytest to run the python tests (#5916)
* misc adaptations/modernizations
plus a few changes to allow pytest discovery

* get the recap unittests running

* pytest config updates

* all tests pass

* integrate the pytest stuff into ctest

* integrate Projects dir
better cmake integration

* ci build env updates

* ignore more files

* remove six.py

* cleanup UnitTestPandasTools

* cleanup pytest

* remove obsolete use of rdkit.six from doctests

* update release notes

* mysterious CI fix

* add conftest to remove some tests

* remove the old python-based testing infrastructure

---------

Co-authored-by: Ric <ricrogz@gmail.com>
2023-11-03 14:39:24 +01:00
Ric
880a8e5725 Reformat Python code for 2023.03 release (#6294)
* run yapf

* run isort

---------

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
2023-04-28 06:53:56 +02:00
Greg Landrum
24f1737839 Remove a bunch of Python2-related warts (#2315)
* remove all of the "from __future__" imports

* remove the first batch of rdkit.six imports/uses

* next step of rdkit.six removal

* removing xrange, range, and some maps

* next round of removals

* next round of cleanups

* fix inchi test

* last bits of "from rdkit.six" are gone

* and the last of the six stuff is gone

* strange importlib problem
2019-03-06 20:43:49 -05:00
gedeck
0626136f66 Replace optparse with argparse (#1835)
* 1194: Review assignments of range in Python code 

Task-Url: https://github.com/rdkit/rdkit/issues/1194
Either wrapped the range expression into a list or made sure that the
code is working with a range object.

* Refactored FeatFinderCLI script

* Revert "Refactored FeatFinderCLI script"

This reverts commit d9dcbce95d.

* Review rdkit.Chem.UnitTestSuppliers

* Replace optparse with argparse

* Change outDir default and fix variable name error
2018-05-01 15:25:24 +01:00
Brian Kelley
e54601c456 Updates python test runner to always use sys.executable (#1721) 2018-01-27 08:14:21 +01:00
gedeck
e9af48ffd7 Issue1071/yapf (#1078)
* Issue #1071: add yapf configuration file

* yapf formatting of Code directory

* yapf formatting of Contrib directory

* yapf formatting of Data directory

* yapf formatting of Docs directory

* yapf formatting of External directory

* yapf formatting of Projects directory

* yapf formatting of Regress directory

* yapf formatting of Scripts directory

* yapf formatting of Web directory

* yapf formatting of rdkit directory
2016-09-23 04:58:46 +02:00
Greg Landrum
1cde397acb merge commit 2015-10-30 02:58:46 +01:00
Greg Landrum
14558020c2 get the DbCLI tests working on windows 2015-10-26 07:25:11 +01:00
Andrew Dalke
ff5ba623a5 remove bare excepts but was not able to test them 2015-09-07 13:12:07 +02:00
Paolo Tosco
4f7482139f - fixed tests failing on Windows when retrieving sources through the
Windows git client, which converts line terminators to CR+LF
- added a conditional compilation clause to Code/RDBoost/import_array.h
  to avoid a compilation error on Windows with Python3
2015-02-22 21:49:40 +00:00
Greg Landrum
d8bd7c5b5f Remove deprecations planned for this release 2015-02-08 07:15:53 +01:00
Riccardo Vianello
95f60d21bc python3 portability fixes for pandas and the ipython notebook 2014-09-11 23:49:45 +02:00
Greg Landrum
5710e90943 really fix the python2 problems this time? 2014-06-25 05:04:30 +02:00
Greg Landrum
32991b6608 should fix python2 compatibility problem 2014-06-25 04:34:19 +02:00
Greg Landrum
91f3076f3a clean up another batch of missed ResourceWarnings 2014-06-25 04:33:52 +02:00
Greg Landrum
47931754da fix DbCLI tests; includes fixing the pickling of SparseIntVects 2014-06-24 07:17:12 +02:00
Riccardo Vianello
3358ec5925 initial set of changes introducing python3 support 2014-06-17 18:26:41 +02:00
Greg Landrum
2659c929b5 Fixes #197 2014-01-16 07:36:24 -05:00
Greg Landrum
158c9b9e45 Fixes #136 2013-10-21 05:55:42 +02:00
Greg Landrum
80f1454bd7 Fixes #134 2013-10-21 05:44:50 +02:00
Greg Landrum
a41a5dfcd0 Fixes #130 2013-10-13 07:49:44 +02:00
Greg Landrum
59bbc60378 fix a bug with negation of the queries 2010-11-16 05:26:27 +00:00
Greg Landrum
1acc3cc80a remove deprecated modules 2010-07-17 14:52:31 +00:00
Greg Landrum
19a84f4f17 cleanups and start some deprecations 2010-05-30 10:37:11 +00:00
Greg Landrum
9727cffa61 make python wrappers and tests optional 2010-01-22 11:22:58 +00:00
Greg Landrum
c346a41951 get the tests working on windows. 2010-01-19 06:34:58 +00:00
Greg Landrum
4cf11511a3 rename pure-python tests so that they can be more easily included/excluded 2010-01-15 06:36:50 +00:00
Greg Landrum
8d53ccc249 add tests of python code to the ctest harness 2010-01-14 16:10:09 +00:00
Greg Landrum
7819cf84cb robustify 2009-07-29 06:25:00 +00:00
Greg Landrum
a67853445d switch to using integer primary keys in the db 2009-07-29 05:08:23 +00:00
Greg Landrum
bb4a49fa3a moving closer and closer to having this useful in other scripts 2009-07-28 19:07:52 +00:00
Greg Landrum
64b7dea99f put the smiles extraction back in CreateDb.py just in case it is needed later
otherwise minor cleanups
2009-07-24 10:16:45 +00:00
Greg Landrum
23b6665f09 refactoring and cleanup 2009-07-24 06:00:11 +00:00
Greg Landrum
d648ffba08 rearrange fingerprint generation 2009-07-13 11:50:48 +00:00
Greg Landrum
0c745b2b60 try to be smarter about arguments 2009-07-13 10:18:10 +00:00
Greg Landrum
40e6d352dc ongoing improvements 2009-07-13 08:55:01 +00:00
Greg Landrum
4323696481 cleaning up the DbCLI code 2009-07-09 04:29:12 +00:00
Greg Landrum
f977cbb9e3 redundant, so it was removed 2009-07-09 04:20:10 +00:00
Greg Landrum
f9c716684b robustify w.r.t. sqlalchemy 2009-06-27 15:40:10 +00:00
Greg Landrum
c1bc75dcfb lots of updates 2009-06-19 05:39:41 +00:00
Greg Landrum
eb20435924 robustify when no error file is being used 2009-05-07 08:51:55 +00:00
Greg Landrum
420546dc15 get a bit better 2009-04-09 03:32:03 +00:00
Greg Landrum
6efe73dd3a another set of useful additions 2009-04-07 05:09:20 +00:00
Greg Landrum
8bdf357e55 make the len() operation of SDMolSuppliers faster; start thinking about making SDView4 useable 2009-04-05 18:45:57 +00:00
Greg Landrum
ab7b1cb34a some more missed updates 2009-03-24 09:03:59 +00:00
Greg Landrum
b2cd20fa2c some more residual cleanups 2009-03-23 17:00:45 +00:00
Greg Landrum
cd49b56936 merge revs 958:973 from trunk 2009-02-04 04:46:42 +00:00
Greg Landrum
515b0db273 quasi-works 2009-02-04 04:34:05 +00:00
Greg Landrum
33e7be513d we're going to call the package rdkit, not pyRDKit 2009-01-26 20:08:53 +00:00